package Basic.day05;

public class BreakDemo {
    public static void main(String[] args) {
        // 定义一个循环
        for (int i = 0; i < 10; i++) {
            if (i == 5) {
                break; // 当i等于5时，跳出循环
            }
            System.out.println(i);
        }
    }
}
